package com.bean;

import com.imessage.type.BusinessTaskCmd;
import com.imessage.type.DeviceClientState;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
@Getter
@Setter
@ToString
@Entity
@Table(name = "device_client", schema = "public")
public class DeviceClient extends BaseModel implements Serializable {

    @Column(name = "code", nullable = true, length = 255)
    private String code;

    @Column(name = "name", nullable = true, length = 255)
    private String name;

    @Column(name = "task_cmd", nullable = true, length = 2)
    private BusinessTaskCmd taskCmd =BusinessTaskCmd.other;

    @Column(name = "virtual_num", nullable = true)
    private Long virtualNum=0l;

    @Column(name = "state", nullable = true, length = 2)
    private DeviceClientState state = DeviceClientState.shutdown;


}
